
var foo2;
(function() {
  let x = "inside";
  foo2 = function() { return x; };
}());
var x = 123;
console.log(foo2());
console.log(x);
